﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _10.BonusRange
{
    class bonusPoints
    {
        static void Main(string[] args)
        {
            int returns = 0;
            while (returns < 5)
            {
                Console.WriteLine("Insert a digit 0...9");
                string digit = Console.ReadLine();
                int digits;
                if (int.TryParse(digit, out digits))
                {
                    switch (digits)
                    {
                        case 0: Console.WriteLine("Error!"); break;
                        case 1:
                        case 2:
                        case 3: Console.WriteLine("digit * 10 = {0}", digits * 10); break;
                        case 4:
                        case 5:
                        case 6: Console.WriteLine("digit * 100 = {0}", digits * 100); break;
                        case 7:
                        case 8:
                        case 9: Console.WriteLine("digit * 1000 = {0}", digits * 1000); break;
                        default: Console.WriteLine("Error!!!");
                            break;
                    }
                }
                else
                {
                    Console.ForegroundColor = ConsoleColor.DarkRed;
                    Console.WriteLine("This is not a digit -- {0}", digit);
                }
                num++;
            }
        }
    }
}
